Check for uxtheme.h (#157967, J. Ali Harlow)
authorMatthias Clasen <mclasen@redhat.com>
Fri, 12 Nov 2004 03:51:40 +0000 (03:51 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Fri, 12 Nov 2004 03:51:40 +0000 (03:51 +0000)
2004-11-11  Matthias Clasen  <mclasen@redhat.com>

* configure.in: Check for uxtheme.h  (#157967, J. Ali Harlow)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-6
ChangeLog.pre-2-8
configure.in
modules/engines/ms-windows/xp_theme.c

index 855e364664b8f118e44b492287062a55f8737734..91efdf2b1a99fbf772a21c184d9dcef52f689d11 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2004-11-11  Matthias Clasen  <mclasen@redhat.com>
 
+       * configure.in: Check for uxtheme.h  (#157967, J. Ali Harlow)
+
+       * modules/engines/ms-windows/xp_theme.c: Use HAVE_UXTHEME_H
+       to protect the #include <uxtheme.h> 
+
        * docs/tools/Makefile.am: Don't try to build doc-shooter on 
        Windows.  (#157979, J. Ali Harlow) 
 
index 855e364664b8f118e44b492287062a55f8737734..91efdf2b1a99fbf772a21c184d9dcef52f689d11 100644 (file)
@@ -1,5 +1,10 @@
 2004-11-11  Matthias Clasen  <mclasen@redhat.com>
 
+       * configure.in: Check for uxtheme.h  (#157967, J. Ali Harlow)
+
+       * modules/engines/ms-windows/xp_theme.c: Use HAVE_UXTHEME_H
+       to protect the #include <uxtheme.h> 
+
        * docs/tools/Makefile.am: Don't try to build doc-shooter on 
        Windows.  (#157979, J. Ali Harlow) 
 
index 855e364664b8f118e44b492287062a55f8737734..91efdf2b1a99fbf772a21c184d9dcef52f689d11 100644 (file)
@@ -1,5 +1,10 @@
 2004-11-11  Matthias Clasen  <mclasen@redhat.com>
 
+       * configure.in: Check for uxtheme.h  (#157967, J. Ali Harlow)
+
+       * modules/engines/ms-windows/xp_theme.c: Use HAVE_UXTHEME_H
+       to protect the #include <uxtheme.h> 
+
        * docs/tools/Makefile.am: Don't try to build doc-shooter on 
        Windows.  (#157979, J. Ali Harlow) 
 
index 855e364664b8f118e44b492287062a55f8737734..91efdf2b1a99fbf772a21c184d9dcef52f689d11 100644 (file)
@@ -1,5 +1,10 @@
 2004-11-11  Matthias Clasen  <mclasen@redhat.com>
 
+       * configure.in: Check for uxtheme.h  (#157967, J. Ali Harlow)
+
+       * modules/engines/ms-windows/xp_theme.c: Use HAVE_UXTHEME_H
+       to protect the #include <uxtheme.h> 
+
        * docs/tools/Makefile.am: Don't try to build doc-shooter on 
        Windows.  (#157979, J. Ali Harlow) 
 
index 3fa4a4ad7fceab65ffc020f78beed11a83ec3929..712f1b0b0d61839b9e745c35c40b24f919b96eac 100644 (file)
@@ -639,6 +639,14 @@ fi
 AC_MSG_RESULT($gdk_working_wctype)
 AC_SUBST(GDK_WLIBS)
 
+# Check for uxtheme.h (for MS-Windows Engine)
+AC_MSG_CHECKING(for uxtheme.h)
+AC_TRY_CPP([#include <uxtheme.h>], gtk_uxtheme_h=yes, gtk_uxtheme_h=no)
+if test $gtk_uxtheme_h = yes; then
+   AC_DEFINE(HAVE_UXTHEME_H,1,[Have uxtheme.h include file])
+fi
+AC_MSG_RESULT($gtk_uxtheme_h)
+
 
 ##################################################
 # Checks for gdk-pixbuf
index 7d7af293b666e70b21810d3b5f3d6f9f9fc65a1a..9ba01a812944ef2449c49dedb70adddbdb2e7f6d 100755 (executable)
@@ -22,6 +22,7 @@
 
 #include "xp_theme.h"
 
+#include <config.h>
 #include <windows.h>
 #include <math.h>
 #include <string.h>
 
 #include "gdk/win32/gdkwin32.h"
 
-
-#ifdef DONT_HAVE_UXTHEME_H
-#include "xp_theme_defs.h"
-#else
+#ifdef HAVE_UXTHEME_H
 #include <uxtheme.h>
 #include <tmschema.h>
+#else
+#include "xp_theme_defs.h"
 #endif
 
 #ifndef TMT_CAPTIONFONT